import App from './App'
import uviewPlus from 'uview-plus'
import "uview-plus/index.scss"
import request from '@/utils/request.js'
import api from '@/utils/api.js'
import jssdk from "weixin-js-sdk"

import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  app.use(uviewPlus)
  app.config.globalProperties.$req = request
  app.config.globalProperties.$api = api
  app.config.globalProperties.$wx = jssdk
  return {
    app
  }
}